//
//  OffersViewController.h
//  jungoo
//
//  Created by Dang Quang Trung on 8/22/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "BaseTableViewController.h"

enum
{
    OfferForNormal = 0,
    OfferForShare  = 1
};

typedef NSInteger OfferForMode;

@class OffersViewController;

@protocol OffersViewControllerDelegate <NSObject>

@optional

- (void)offersViewController:(OffersViewController*)controller didSelectedWithOffer:(NSDictionary*)offer;

@end

@interface OffersViewController : BaseTableViewController<UITableViewDataSource,UITableViewDelegate>
{
    UITableViewCell *myCell;
    UISegmentedControl *segment;
    
    NSMutableArray *dataArr;
}

@property (nonatomic, retain) NSMutableArray *dataArr;
@property (nonatomic, retain) IBOutlet UITableViewCell *myCell;
@property (nonatomic,retain) IBOutlet UISegmentedControl *segment;
@property (assign) OfferForMode mode;
@property (assign) id<OffersViewControllerDelegate> delegate;

- (IBAction)segmentSwitch:(id)sender;

@end
